TARGET=libObserver.a
SRCS=$(wildcard *.cpp)
OBJS=$(SRCS:.cpp=.o)

INCLUDE +=-I./
LIB +=-L./
CXXFLAGS += -fPIC
LDFLAGS +=

default: $(TARGET)

.PHONY: clean

$(TARGET): $(OBJS)
	ar -rcs $@ $^

%.o: %.cpp
	$(CXX) $^ $(CXXFLAGS) $(INCLUDE) -c

clean:
	-rm -f $(OBJS)
	-rm -f $(TARGET)